package com.nt.train.config;

import com.nt.train.dto.Bike;
import org.springframework.beans.factory.FactoryBean;
/**
 * @author hlf
 * @version 1.0
 * @date 2022/8/3 16:30
 */
public class BikeFactoryBean implements FactoryBean<Bike> {

    @Override
    public Bike getObject() throws Exception {
        return new Bike();
    }

    @Override
    public Class<?> getObjectType() {
        return Bike.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}